﻿namespace Library.Gsm {
  public interface IGsmConnection {
    bool IsOpen { get; }
    void Open(IConnectionInfo info);
    void Close();
    IGsmCommand CreateCommand();
    int ReadTimeOut { get; set; }
    int WriteTimeOut { get; set; }
    void Write(string command);
    bool ReadResponseLimitTimeOut(out string response);
    bool ReadResponseLimitTimeOut(out string response, string readToString);
    void BeforeExecuteCommand();
  }
}
